package com.prs.crm.domain.sale;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.FlowCodeEntity;
import com.prs.crm.domain.hr.Person;
@Entity
@Table(name="sale_receives")
public class SalesReceives extends FlowCodeEntity {
	
	private static final long serialVersionUID = 1L;
		
		@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
		private Integer id;
		/**
		 * 收款单主题
		 */
		private String receiviceName;
		
		/**
		 * 底单编号
		 */
		
		private String butonListCode;
		
		/**
		 * 
		 * 金额
		 */
		private Double amount;
		
		/**
		 * 计划回款日期
		 */
		
		private Date planDate;
		
		/**
		 * 对应合同单
		 */
		@ManyToOne
		private SalesContract salesContract;
		
		/**
		 * 销售人员
		 */
		@ManyToOne
		private Person person;
		
		/**
		 * 收款单概要
		 */
		@Lob
		private String remark;
		
	
		

		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public String getButonListCode() {
			return butonListCode;
		}

		public void setButonListCode(String butonListCode) {
			this.butonListCode = butonListCode;
		}

		public Double getAmount() {
			return amount;
		}

		public void setAmount(Double amount) {
			this.amount = amount;
		}

		public Date getPlanDate() {
			return planDate;
		}

		public void setPlanDate(Date planDate) {
			this.planDate = planDate;
		}

		public SalesContract getSalesContract() {
			return salesContract;
		}

		public void setSalesContract(SalesContract salesContract) {
			this.salesContract = salesContract;
		}

		public Person getPerson() {
			return person;
		}

		public void setPerson(Person person) {
			this.person = person;
		}

		public String getRemark() {
			return remark;
		}

		public void setRemark(String remark) {
			this.remark = remark;
		}

		public String getReceiviceName() {
			return receiviceName;
		}

		public void setReceiviceName(String receiviceName) {
			this.receiviceName = receiviceName;
		}

}
